<?php
	if (isset($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
		die ('Please do not load this page directly. Thanks!');
?>

		<!-- Comment's List -->
        <div class="msg-wrapper floor">
            <ul class="msg-show-list">
                <?php wp_list_comments('type=comment&callback=fo_comment&reverse_top_level=true'); ?>
            </ul>
            <div class="pagination" id="pagination"><?php par_pagenaviComment(); ?></div>
        </div>
		<div class="msg-form floor">
            <form id="commentform" name="commentform" action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post">
                <div class="form-item">
                    <label><span class="must">*</span>您的姓名：</label>
                    <input id="author" type="text" name="author" value="<?php echo $comment_author; ?>" size="23" tabindex="1" />
                </div>
                <div class="form-item">
                    <label><span class="must">*</span>邮箱：</label>
                    <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="23" tabindex="2" />
                </div>
                <div class="form-item">
                    <label><span class="must">*</span>留言内容：</label>
                    <textarea id="message comment" name="comment" tabindex="3" rows="3" cols="40"></textarea>
                </div>
                <?php if (!is_user_logged_in()) {?>
                <div class="form-item form-verification-code" id="verification-code">
                    <label><span class="must">*</span>验证码：</label>
                </div>
                <?php } ?>
                <div class="form-item">
                <a href="javascript:void(0);" onClick="Javascript:document.forms['commentform'].submit()" class="btn-submit">发表评论</a> </li>
                </div>
                <?php comment_id_fields(); ?>
                <?php do_action('comment_form', $post->ID); ?>
            </form>
        </div>